/*
 * Copyright (c) gitee.com/jiandong001.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */

import hilog from '@ohos.hilog';
import worker from '@ohos.worker';

const parentPort = worker.workerPort;
parentPort.onmessage = function(e){
  parentPort.postMessage("receive data from main.js")
  hilog.info(0x0000, 'worker', 'Test NAPI 2 + 3 = %{public}d', 11)
}
